<!DOCTYPE html>
<html>
    <?php session_start() ?>
    <head>
        <link rel="stylesheet" href="/bootstrap/css/bootstrap-theme.min.css" type="text/css">
        <link rel="stylesheet" href="/bootstrap/css/bootstrap.min.css" type="text/css">
        <title>Błąd serwera</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
    </head>
    <?php
    $appPath =dirname(dirname(__FILE__));
    include_once $appPath."\Loader.php";
    $loader = new Loader();
    ?>
    <body>
        <div class="container">
            <h2 class="alert-danger text-center text-danger">Wystąpił błąd serwera </h2>
             <p class="alert-danger">
                <?php
            if (isset($_SESSION["error"])){    
                     $err=unserialize($_SESSION["error"]);
                    echo $err->getMessage();
                }
            ?>
            </p>
            <?Php
            if (DEBUG){
                if (isset($_SESSION["error"])){                    
                    echo unserialize($_SESSION["error"]);
                }               
            }  
             unset($_SESSION["error"]);
            ?>
        </div>        
    </body>
</html>